window: Add support for enabling client decorations on non-Wayland
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Mar 2013 16:06:26 +0000 (12:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 Mar 2013 16:19:49 +0000 (12:19 -0400)
commitb141121ef6cac2e07257c9d0e73db4c25807bf0c
tree85c8e990c8808d9e7236d185df63fc508a63bea1
parentf17b7136dd59bee53e274691cf2c79248a9e2846
window: Add support for enabling client decorations on non-Wayland

Client side decorations can be enabled on non-Wayland platforms by
setting the GTK_CSD="1" environment variable.

We must ensure we have a GdkVisual that has an alpha channel since
the decorations rely on transparency. If we cannot get a visual with
an alpha channel then we do not enable client side decorations.
gtk/gtkwindow.c